<?php $this->load->view("general/header");?>
<div id="view_invoice" class="page_">
    <div class="form">              
        <div class="form_header">Lihat Daftar Karyawan</div>
        <div class="content_data">
        <form method="post" action="<?php echo site_url("admin/user/karyawan");?>">
         <div id="placeResult">
        </div> 
        <!--<div id="filter">
        	<strong>Filter</strong>: <br />
			Status Pelunasan <select id="karstatus">
            <option value="">::: Select :::</option>
            <option value="Y">Bekerja</option>
            <option value="N">Tidak Bekerja</option>
            </select>
            
        </div>
        <div id="selectplace" align="right">
        	Lakukan pencarian berdasarkan:
            <select id="selectjenis">
            	<option value="">::: Select :::</option>
            	<option value="username">Username</option>
                <option value="nama">Nama PT</option>
                
            </select>
            <input type="text" id="inputjenis" placeholder="Masukan kata kunci"/>
          <input type="button" name="btnSearch" value="Cari" class="button_red" onclick="javascript:invoJenisBarang(
                                                        '#selectjenis', '#inputjenis', '#searchPlace', '0')"/>
        </div>-->
        <div id="searchPlace">
        <div id="pager1" class="pager1">
        <table id="background-image"> 
            <thead> 
            	<?php if(empty($user)){
					?>
                    <tr>
                    	<td colspan="7" align="center">Tidak ada Karyawan</td>
                    </tr>
                    <?php
				}else{?>
                <tr> 
                	
                    <th>Nama</th>
                    <th>Username</th>
                    <th>Email</th> 
                    <th>Bergabung Sejak</th>               
                    <th>Telepon</th>
                    <th>Alamat</th>
                    <th colspan="3">Action</th>
                </tr> 
            </thead> 
            <tbody> 
            	
           		<?php $i=0; foreach ($user as $user1){?>
					<tr id="tr_<?php echo $user1['user_id'];?>" >
                <!--onclick="javascript:invoDet(
                        '#invo_<?php echo $user1['user_id'];?>', '#placeResult', 
                        '<?php echo $user1['invoice_id'];?>', '0')"-->
                        <td><?php echo $user1['name']?></td>
                        <td id="td_<?php echo $user1['user_id'];?>"><?php echo $user1['username'];?></td> 
                        <td><?php echo $user1['email'];?></td>
                        <td><?php echo $user1['member_since'];?></td>
                        <td><?php echo $user1['phone'];?></td>  
                        <td><?php echo $user1['address'];?></td> 
                        
                       
                        <td><a href="<?php echo site_url('admin/user/edit/' . $user1['user_id'])?>"><img src="<?php echo base_url();?>img/edit.png" title="ubah detail" width="24" height="24"/></a></td>
                        <td><a href="<?php echo site_url('admin/user/changepass/' . $user1['user_id'])?>"><img src="<?php echo base_url();?>img/chpass.png" title="ubah password" width="24" height="24"/></a></td>
                        <td><a href="<?php echo base_url();?>admin/manage_admin/delete/<?php echo $user1['user_id'];?>" onclick="return confirm('Are you sure want to delete this admin?'); "><img src="<?php echo base_url();?>img/btndelete.png" title="delete" /></a></td>
                    </tr> 
                    
				<?php $i++;} ?>
           		
       		
           
            </tbody> 
           
            </table> 
    		
            
        	</form>
            <form>
                <img src="<?php echo base_url();?>img/first.png" class="first" title="back to first"/>
                <img src="<?php echo base_url();?>img/prev.png" class="prev" title="previous"/>
                <input type="text" class="pagedisplay"/>
                <img src="<?php echo base_url();?>img/next.png" class="next" title="next"/>
                <img src="<?php echo base_url();?>img/last.png" class="last" title="go to last"/>
               
                <select class="pagesize">
                    <option selected="selected"  value="10">10</option>
                	<option value="15">15</option>
                    
                </select>
            
        	</form>
            
            </div>
            <?php }?>
    	</div>
       
    </div>      
    
</div>


 
 

<?php $this->load->view("general/footer");?>